include ../compile.mk

CFLAGS+=-I../include -I.

SRC=$(wildcard *.c)
OBJ=$(patsubst %.c,%.o,$(wildcard *.c))
LIB=libdtk

%.o%.c:

$(LIB):$(OBJ)
	$(AR) -rcs $(LIB).a $^
	$(CC) -shared -o $(LIB).so $^

clean:
	$(RM) -rf $(OBJ) $(LIB).a $(LIB).so
